package Queue;

import java.util.LinkedList;
import java.util.List;

public class Text {
    public static void main(String[] args) {

        BigTopPile<Priority> q = new BigTopPile<Priority>(10);
        q.offer(new Entry("text1",4));
        q.offer(new Entry("text2",3));
        q.offer(new Entry("text3",2));
        q.offer(new Entry("text5",5));
        q.offer(new Entry("text6",1));

        System.out.println(q.poll());
        System.out.println(q.poll());
        System.out.println(q.poll());
        System.out.println(q.poll());
        System.out.println(q.poll());







/*        LinkedList<Integer> q = new LinkedList<>();
        q.offer(null);
        System.out.println(q.isEmpty());*/
/*        PriorityQueue<Integer> priorityQueue = new PriorityQueue<Integer>();
        priorityQueue.offer(1);
        priorityQueue.offer(10);
        priorityQueue.offer(3);
        priorityQueue.offer(7);
        priorityQueue.offer(4);
        priorityQueue.offer(5);
        priorityQueue.offer(5);
        priorityQueue.offer(99);
        priorityQueue.offer(99);
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());*/




    }
}
